function  checkEmpty(array,flg){
	
	for(var i = 0; i < array.length; i++)
	{
		if ($("#" + array[i]).val() ==''||$("#" + array[i]).val()==0
				||$("#" + array[i]).val() == null){
			$("#" + array[i]).css("background-color","#A0CFEB"); flg=false;
			
		}else{$("#" + array[i]).css("background-color","#fff");}
	}
	return flg;
}

function fillData(array){
	
	document.getElementById("wrNo").value=array[0];
	document.getElementById("taskName").value=array[1];
	document.getElementById("work").value=array[2];
	document.getElementById("expHrs").value=array[3];
	document.getElementById("realHour").value=array[4];
	document.getElementById("cost").value=array[5];
	document.getElementById("priority").value=array[6];
	document.getElementById("percentage").value=array[7];
	document.getElementById("diliver").value=array[8];
	document.getElementById("comment").value=array[9];
}